package com.yunfei.yunhetong.elecContCustIdenDtl.bo;
import com.yunfei.yunhetong.elecContCustIdenDtl.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename ELEC_CONT_CUST_IDEN_DTL
*@author zhengyunfei
*@createDate Mon Nov 11 13:52:55 CST 2019
*/ 
public class ElecContCustIdenDtlBo implements java.io.Serializable{
	private String custId;
	private String cReserveno;
	private String entreMobileNo;
	private String idenTyp;
	private String idenDate;
	private String idenResu;
	private String cradNo;
	private String idenNo;
	private String custNm;
	private String mobileNo;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCustId(String custId){
		this.custId=custId;
	}
	public String getCustId(){
		return custId;
	}
	public void setCReserveno(String cReserveno){
		this.cReserveno=cReserveno;
	}
	public String getCReserveno(){
		return cReserveno;
	}
	public void setEntreMobileNo(String entreMobileNo){
		this.entreMobileNo=entreMobileNo;
	}
	public String getEntreMobileNo(){
		return entreMobileNo;
	}
	public void setIdenTyp(String idenTyp){
		this.idenTyp=idenTyp;
	}
	public String getIdenTyp(){
		return idenTyp;
	}
	public void setIdenDate(String idenDate){
		this.idenDate=idenDate;
	}
	public String getIdenDate(){
		return idenDate;
	}
	public void setIdenResu(String idenResu){
		this.idenResu=idenResu;
	}
	public String getIdenResu(){
		return idenResu;
	}
	public void setCradNo(String cradNo){
		this.cradNo=cradNo;
	}
	public String getCradNo(){
		return cradNo;
	}
	public void setIdenNo(String idenNo){
		this.idenNo=idenNo;
	}
	public String getIdenNo(){
		return idenNo;
	}
	public void setCustNm(String custNm){
		this.custNm=custNm;
	}
	public String getCustNm(){
		return custNm;
	}
	public void setMobileNo(String mobileNo){
		this.mobileNo=mobileNo;
	}
	public String getMobileNo(){
		return mobileNo;
	}
	public static ElecContCustIdenDtlEntity boToEntity(ElecContCustIdenDtlBo bo){
		ElecContCustIdenDtlEntity entity=new ElecContCustIdenDtlEntity();
		entity.setCustId(bo.getCustId());
		entity.setCReserveno(bo.getCReserveno());
		entity.setEntreMobileNo(bo.getEntreMobileNo());
		entity.setIdenTyp(bo.getIdenTyp());
		entity.setIdenDate(bo.getIdenDate());
		entity.setIdenResu(bo.getIdenResu());
		entity.setCradNo(bo.getCradNo());
		entity.setIdenNo(bo.getIdenNo());
		entity.setCustNm(bo.getCustNm());
		entity.setMobileNo(bo.getMobileNo());
		return entity;
	}
	public static ElecContCustIdenDtlBo entityToBo(ElecContCustIdenDtlEntity bo){
		ElecContCustIdenDtlBo entity=new ElecContCustIdenDtlBo();
		entity.setCustId(bo.getCustId());
		entity.setCReserveno(bo.getCReserveno());
		entity.setEntreMobileNo(bo.getEntreMobileNo());
		entity.setIdenTyp(bo.getIdenTyp());
		entity.setIdenDate(bo.getIdenDate());
		entity.setIdenResu(bo.getIdenResu());
		entity.setCradNo(bo.getCradNo());
		entity.setIdenNo(bo.getIdenNo());
		entity.setCustNm(bo.getCustNm());
		entity.setMobileNo(bo.getMobileNo());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("custId")){
					result="CUST_ID";
				}
				if(field.equals("cReserveno")){
					result="C_RESERVENO";
				}
				if(field.equals("entreMobileNo")){
					result="ENTRE_MOBILE_NO";
				}
				if(field.equals("idenTyp")){
					result="IDEN_TYP";
				}
				if(field.equals("idenDate")){
					result="IDEN_DATE";
				}
				if(field.equals("idenResu")){
					result="IDEN_RESU";
				}
				if(field.equals("cradNo")){
					result="CRAD_NO";
				}
				if(field.equals("idenNo")){
					result="IDEN_NO";
				}
				if(field.equals("custNm")){
					result="CUST_NM";
				}
				if(field.equals("mobileNo")){
					result="MOBILE_NO";
				}
		}
		return result;
	}
}

